package com.csw.android.dev_utils.utils

import java.io.Closeable

object StreamUtils {

    fun closeStream(stream: Closeable?): Boolean {
        try {
            stream?.run {
                close()
                return true
            }
        } catch (e: Exception) {
            e.printStackTrace()
        }
        return false
    }
}